﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="SearchResult.ascx.vb" Inherits="FrontEnd_Control_Product_SearchResult" %>

<script type="text/javascript">
    function ajaxJquery() {
        $(function () {

            $(".btn_detail").click(function () {
                location.href = $(this).parent().parent().find("a").attr("href");
                return false;
            });
            $(".thumb_imgshopproduct").click(function () {
                location.href = $(this).parent().find("a").attr("href");
                return false;
            });

        });
    }
</script>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>

    <div class="box_porletright">
    <div class="texttitle_porletright">
      <h2><asp:HyperLink ID="hplCate" runat="server" Text="KẾT QUẢ TÌM KIẾM" CssClass="texttitle_porletright"></asp:HyperLink></h2>
    </div>


            <div class="bgmid_porletright">
                <div class="title_news_views">
                    <asp:Literal Id="ltrTitle" runat="server"></asp:Literal>
                 </div>
              <ul class="list-product">
                <asp:Repeater ID="rptProduct" runat="server">
                    <ItemTemplate>
                         <li>
                       <asp:HyperLink id="hplTitleImage" runat="server">
                      <div class="divImg">
                         <h4><asp:Image ID="img" border="0"  align="absmiddle" runat="server" /></h4>
                      </div>
                      <h1><asp:HyperLink ID="hplTitle" runat="server" CssClass="title_product"></asp:HyperLink></h1>
                      <div class="divPrice">Giá: <span><asp:Literal ID="ltrPrice" runat="server"></asp:Literal>đ</span>  
                      <asp:Literal ID="ltrSaleOff" runat="server"></asp:Literal> </div>
                      </asp:HyperLink> 
                     </li>
                        
                    </ItemTemplate>
                </asp:Repeater>                                          
                    
                </ul>      
                                                     
                    <div class="clear_both" style="height:5px;"></div>
                             
             <!--phan trang-->
            <div id="results_resultsNavigationDiv" class="pagination" runat="server">
                <ul>
                    <asp:LinkButton ID="lnkFirst" runat="server"><<</asp:LinkButton>
                    <asp:Repeater ID="rptPage" runat="server">
                        <ItemTemplate>
                            <li><asp:LinkButton ID="lnkTitle" runat="server" OnClick="lnkTitle_Click"></asp:LinkButton></li> 
                        </ItemTemplate>
                    </asp:Repeater>
                    <asp:LinkButton ID="lnkLast" runat="server">>></asp:LinkButton>
                </ul>   
            </div>
            <asp:HiddenField ID="hidCount" Value="0" runat="server" />
            <asp:HiddenField ID="hidIndex_page" Value="0" runat="server" />
            <asp:HiddenField ID="hidCur_Page" Value="1" runat="server" />
            <asp:HiddenField ID="hidStoreId" Value="0" runat="server" />
            <asp:HiddenField ID="hidCateId" Value="0" runat="server" />
                            

                                          
            </div>
            
    </div>

   </ContentTemplate>
</asp:UpdatePanel>